import request from '../../utils/request'

/**
	 * 新增附加费项
	 *
	 * @param localFeeDetailForm
	 * @param bindingResult
	 * @return
	 */
export async function addLocalFeeDetail( data ) {
	return request(apiPath.mc + "/api/localFeeDetail", {
		method: 'post',
		data
	});
}


	/**
	 * 更新附加费项
	 *
	 * @param localFeeDetailForm
	 * @param bindingResult
	 * @return
	 */
export async function updateLocalFeeDetail( data ) {
    return request(apiPath.mc + "/api/localFeeDetail", {
        method: 'put',
        data
    });
}

    /**
	 * 根据id删除附加费项
	 *
	 * @param id
	 * @return
	 */
export async function deleteLocalFeeDetailById({ id }){
    return request(apiPath.mc + "/api/localFeeDetail/" + id,{
        method: 'delete'
    });
}
   
    /**
	 * 根据id获取附加费项
	 *
	 * @param id
	 * @return
	 */
export async function getLocalFeeDetailById({ id }){
    return request(apiPath.mc +  "/api/localFeeDetail/" + id,{
        method: 'get'
    });
}

	/**
	 * 分页查询附加费项
	 * 
	 * @param localFeeId
	 * @param page
	 */
export async function getListForPage({ localFeeId, page}){
    return request(apiPath.mc + "/api/localFeeDetail",{
        method: 'get',
        data: {  localFeeId, page: page.page, size: page.size }
    });
}